//
//  WBMethod.swift
//  Swift_Weibo
//
//  Created by Tim on 2019/8/13.
//  Copyright © 2019 Tim. All rights reserved.
//  全局公共方法

import Foundation

/// 开发模式下打印相关信息
///
/// - Parameters:
///   - msg:        输出信息
///   - file:       当前文件名称
///   - lineNumber: 当前所在行号
func debugLog<T>(_ msg: T, file: String = #file, lineNumber : Int = #line) {
    #if DEBUG
    let fileName = (file as NSString).lastPathComponent
    print("[\(fileName):line:\(lineNumber)]- \(msg)")
    #endif
}
